package com.example.nacoscloudconsumer.fallback;


import com.example.nacoscloudconsumer.entity.Article;
import com.example.nacoscloudconsumer.entity.Video;
import com.example.nacoscloudconsumer.service.EsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/fall")
@Slf4j
public class EsFallBack implements EsService{

    @Override
    public List<Article> getArtPage(String content, String title) {
        log.error("es服务的文章接口异常");
        return null;
    }

    @Override
    public List<Video> getVideoPage(String content, String title) {
        log.error("es服务的视频接口异常");
        return null;
    }
}
